home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / alv.sun / alv.lha / doc / alv-docs < prev    next >
Encoding:
Text File  |  1992-11-08  |  836 b   |  41 lines

  1. #!/bin/sh
  2.  
  3. # set THACK to be a troff to postscript convertor
  4. # set PSPR be the program that prints postscript
  5. # set LPR to the program that prints on your line printer
  6.  
  7. HACK=/usr/doc1/phill/bin/thack
  8. SPR=/usr/local/bin/pspr
  9. PR=lpr
  10.  
  11. ########################################################
  12. # You shouldn't have to alter anything below this line #
  13. ########################################################
  14.  
  15. ANPAGES=`/bin/ls man/man[135]/*` 
  16.  
  17. ase $# in
  18. 0) 
  19.    (nroff -ms nroff_header.ms;
  20.     for i in $MANPAGES
  21.     do
  22.         nroff -man $i
  23.     done)  
  24.    ;;
  25. 1)
  26.    if ( test $1 = "laser" ) then
  27.            troff -t -ms troff_header.ms | $THACK | $PSPR
  28.         for i in $MANPAGES
  29.         do
  30.             troff -t -man $i | $THACK | $PSPR
  31.         done
  32.    elif ( test $1 = "lpr" ) then
  33.         (nroff -ms nroff_header.ms;
  34.          for i in $MANPAGES
  35.          do
  36.             nroff -man $i
  37.          done) | $LPR
  38.    fi
  39.    ;;
  40. sac
  41.